package com.wad.manager.service;

import com.github.pagehelper.PageInfo;
import com.wad.dto.system.AssginRoleDto;
import com.wad.dto.system.LoginDto;
import com.wad.dto.system.SysUserDto;
import com.wad.entity.system.SysUser;
import com.wad.vo.system.LoginVo;
import org.springframework.stereotype.Service;

/**
 * @author wad
 * @date 2023/11/29 14:13
 * @project e-commerce
 **/

@Service
public interface SysUserService {
    LoginVo login(LoginDto loginDto);

    SysUser getUserInfo(String token);

    void logout(String token);

    PageInfo<SysUser> findByPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);

    void doAssign(AssginRoleDto assginRoleDto);
}
